<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:property value="account.userid"/> </title>
<link rel="stylesheet" href="./css/common.css" />
</head>
<body>
<s:if test="{account.userid.equals('')}">
<s:form  action="updateAccount">
	<table border=0 cellspacing=0 cellpadding=5 align=center>
		<tr><td>用户ID:</td> <td><s:hidden name="account.userid"/><s:property value="account.userid" /></td></tr>
		<tr><td>姓名:</td> <td><s:textfield name="account.lastName" size="4"/>
		<s:textfield name="account.firstName" size="8"/></td></tr>
		<tr><td>状态:</td> <td><s:checkbox name="account.status"/></td></tr>
		<tr><td>电子邮件:</td> <td><s:textfield name="account.email" size="40"/></td></tr>
		<tr><td>电话:</td> <td><s:textfield name="account.phone" size="40"/></td></tr>
		<tr><td>区域</td><td>国家:<s:textfield name="account.country" size="4"/>
			省份:<s:textfield name="account.state" size="4"/>
			市(县):<s:textfield name="account.city" size="4"/></td></tr>
		<tr><td>地址1:</td> <td><s:textfield name="account.address1" size="60"/></td></tr>
		<tr><td>地址2:</td> <td><s:textfield name="account.address2" size="60"/></td></tr>
		<tr><td>邮编:</td> <td><s:textfield name="account.zip" size="20"/></td></tr>
	</table>
	<p align=center> <s:submit value="更新"></s:submit></p>
</s:form>
</s:if>
<s:else>
<s:form  action="insertAccount">
	<table border=0 cellspacing=0 cellpadding=5 align=center>
		<tr><td>用户ID</td> <td><s:textfield name="account.userid" size="40"/></td></tr>
		<tr><td>姓名:</td> <td><s:textfield name="account.lastName" size="4"/>
		<s:textfield name="account.firstName" size="8"/></td></tr>
		<tr><td>状态:</td> <td><s:checkbox name="account.status"/></td></tr>
		<tr><td>电子邮件:</td> <td><s:textfield name="account.email" size="40"/></td></tr>
		<tr><td>电话:</td> <td><s:textfield name="account.phone" size="40"/></td></tr>
		<tr><td>区域</td><td>国家:<s:textfield name="account.country" size="4"/>
			省份:<s:textfield name="account.state" size="4"/>
			市(县):<s:textfield name="account.city" size="4"/></td></tr>
		<tr><td>地址1:</td> <td><s:textfield name="account.address1" size="60"/></td></tr>
		<tr><td>地址2:</td> <td><s:textfield name="account.address2" size="60"/></td></tr>
		<tr><td>邮编:</td> <td><s:textfield name="account.zip" size="20"/></td></tr>
	</table>
	<p align=center> <s:submit value="添加"></s:submit></p>
</s:form>
</s:else>


</body>
</html>